<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign module=oneToManyPojo.getModule()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
import React from 'react'
import InnerPage from '../../components/ling/InnerPage'
import {delete${declarationName}s, find${declarationName}ByPage, save${declarationName}, update${declarationName}Batch} from '../../builder/services/${declarationName}Service'
import ${declarationName}Config from '../schema/${declarationNameFirstLetterLower}.config'
import ${declarationName}QuerySchema from '../schema/${declarationNameFirstLetterLower}.querySchema'
import ${declarationName}DataSchema from '../schema/${declarationNameFirstLetterLower}.dataSchema'

export default class ${declarationName}Index extends React.Component {

  ${declarationNameFirstLetterLower}Props = {
    tableName: '${declarationNameFirstLetterLower}',
    tableConfig:${declarationName}Config,
    querySchema:${declarationName}QuerySchema,
    dataSchema:${declarationName}DataSchema,
    queryMethod: find${declarationName}ByPage,
    insertMethod: save${declarationName},
    updateMethod: update${declarationName}Batch,
    removeMethod: delete${declarationName}s,
  }

  render() {
    return (
      <div>
        <InnerPage
          {...this.${declarationNameFirstLetterLower}Props}
        >
        </InnerPage>
      </div>
    )
  }
}
